<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>后台管理中心</title>  
    <link rel="stylesheet" href="__CSS__/pintuer.css?v={$src_version}">
    <link rel="stylesheet" href="__CSS__/admin.css?v={$src_version}">
    <link rel="stylesheet" href="__CSS__/responsive.css?v={$src_version}">
   <script src="__JS__/jquery-3.2.1.min.js?v={$src_version}"></script> 
   <script src="__JS__/responsive.js?v={$src_version}"></script> 
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
  <div class="logo margin-big-left fadein-top">
    <h1><img src="__IMG__/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />后台管理中心</h1>
  </div>
  <div class="head-l"><a class="button button-little bg-green" href="/" target="_blank"><span class="icon-home"></span> 前台首页</a> &nbsp;&nbsp;<a href="{:U('Admin/index?act=del_cache')}" class="button button-little bg-blue"><span class="icon-wrench"></span> 清除缓存</a> &nbsp;&nbsp;<a class="button button-little bg-red" href="{:U('Log/quit')}"><span class="icon-power-off"></span> 退出登录</a> </div>
</div>
<div class="leftnav">
  <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
  
 <if condition="$Think.session.admin_info.is_admin eq '1'">  
  <h2><span class="icon-pencil"></span>项目管理</h2>
  <ul>
    <li><a href="{:U('Project/index')}" target="right">
    <span class="icon-caret-right"></span>项目管理</a></li>
  </ul>
  <h2><span class="icon-pencil"></span>分类管理</h2>
  <ul>
    <li><a href="{:U('Sort/index')}"  target="right">
      <span class="icon-caret-right"></span>分类管理</a></li>
  </ul> 
   <h2><span class="icon-pencil"></span>商品管理</h2>
  <ul>
    <li><a href="{:U('Goods/index')}" target="right">
    <span class="icon-caret-right"></span>商品管理</a></li>
  </ul>
  <h2><span class="icon-pencil"></span>积分项目管理</h2>
  <ul>
    <li><a href="{:U('Integral/index')}" target="right">
      <span class="icon-caret-right"></span>部门积分管理</a></li>
    <li><a href="{:U('Number/index')}" target="right">
      <span class="icon-caret-right"></span>一般积分管理</a></li>
  </ul>
  <ul>
  </ul>
   <h2><span class="icon-shopping-cart"></span>订单管理</h2>
  <ul>
    <li><a href="{:U('Order/index')}" target="right">
    <span class="icon-caret-right"></span>订单管理</a></li>
  </ul>
  <h2><span class="icon-user"></span>部门管理</h2>
  <ul>
    <li><a href="{:U('Branch/index')}" target="right">
    <span class="icon-caret-right"></span>部门管理</a></li>
  </ul> 
  </if>  
  <h2><span class="icon-user"></span>员工管理</h2>
  <ul>
    <li><a href="{:U('User/index')}" target="right">
    <span class="icon-caret-right"></span>员工管理</a></li>
  </ul> 

  <h2><span class="icon-user"></span>申请管理</h2>
  <ul>
    <li><a href="{:U('Forget/index')}" target="right">
    <span class="icon-caret-right"></span>忘记密码申请</a></li>
  </ul>
  
  <h2><span class="icon-cog"></span>基本设置</h2>
  <ul style="display:block">
    <li><a href="{:U('Set/edit_pwd')}" target="right">
    <span class="icon-caret-right"></span>修改密码</a></li>
     <if condition="$Think.session.admin_info.is_admin eq '1'">  
      <li><a href="{:U('Slide/index')}" target="right">
    <span class="icon-caret-right"></span>幻灯广告</a></li> 
     <li><a href="{:U('Manager/index')}" target="right">
     <span class="icon-caret-right"></span>权限管理</a></li>
     </if>
  </ul>

  
</div>

<ul class="bread">
  <li id="phone-menu"  id="phone-icon"><span class="icon-list"></span></li>
  <li><a href="{:U('Index/index')}" target="right" class="icon-home"> 首页</a></li>
  <li><a href="javascript:;"  id="a_leader_txt">网站信息</a></li>
</ul>
<div class="admin">
  <iframe id="iframe"   src="{:U('Index/index')}" name="right"   width="100%" height="100%"></iframe>
</div>

 
</body>
</html>
<script type="text/javascript">
$(function(){
  $(".leftnav h2").click(function(){
    $(this).next().slideToggle(200);	
    $(this).toggleClass("on"); 
  })
  $(".leftnav ul li a").click(function(){
      $("#a_leader_txt").text($(this).text());
      $(".leftnav ul li a").removeClass("on");
    $(this).addClass("on");
  })
});

if($(document).width()<=414) {
      var iframe = document.getElementById('iframe');
      iframe.onload = function() {
          iframe.contentDocument.onclick = function () {
              $('.leftnav').css('display','none');
          };
      }
}
</script>